package it.gov.fatturapa.www.sdi.ws.trasmissione.v1_0;

public class SdIRiceviFileProxy implements it.gov.fatturapa.www.sdi.ws.trasmissione.v1_0.SdIRiceviFile {
  private String _endpoint = null;
  private it.gov.fatturapa.www.sdi.ws.trasmissione.v1_0.SdIRiceviFile sdIRiceviFile = null;
  
  public SdIRiceviFileProxy() {
    _initSdIRiceviFileProxy();
  }
  
  public SdIRiceviFileProxy(String endpoint) {
    _endpoint = endpoint;
    _initSdIRiceviFileProxy();
  }
  
  private void _initSdIRiceviFileProxy() {
    try {
      sdIRiceviFile = (new it.gov.fatturapa.www.sdi.ws.trasmissione.v1_0.SdIRiceviFile_serviceLocator()).getSdIRiceviFile_port();
      if (sdIRiceviFile != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)sdIRiceviFile)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)sdIRiceviFile)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (sdIRiceviFile != null)
      ((javax.xml.rpc.Stub)sdIRiceviFile)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public it.gov.fatturapa.www.sdi.ws.trasmissione.v1_0.SdIRiceviFile getSdIRiceviFile() {
    if (sdIRiceviFile == null)
      _initSdIRiceviFileProxy();
    return sdIRiceviFile;
  }
  
  public it.gov.fatturapa.www.sdi.ws.trasmissione.v1_0.types.RispostaSdIRiceviFile_Type riceviFile(it.gov.fatturapa.www.sdi.ws.trasmissione.v1_0.types.FileSdIBase_Type parametersIn) throws java.rmi.RemoteException{
    if (sdIRiceviFile == null)
      _initSdIRiceviFileProxy();
    return sdIRiceviFile.riceviFile(parametersIn);
  }
  
  
}